package com.forum.Entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Post {
    private String postId;
    private String topicId;
    private String userId;
    private String mediaUrl;
    private String mediaType;
    private int views;
    private int likes;
    private int comments;

    private String title;
    private String content;
    private String createUser;
    private String updateUser;
    private String token;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


    private String userName;
    private String screenName;
    private String sex;
    private String description;
    private String address;
    private String avatar;
    private Integer status;
    private Integer roleId;




}
